/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Parallel;

/**
 *
 * @author zwirek
 */
public class Attribute {
    private char[] name;
    private char[] value;

    public Attribute(String name, String value) {
//        this.name = name.toCharArray();//CharArrPool.getCanonicalVersion(name.toCharArray());
//        this.value =  value.toCharArray();//CharArrPool.getCanonicalVersion(value.toCharArray());
        this.name = CharArrPool.getCanonicalVersion(name.toCharArray());
        this.value =  CharArrPool.getCanonicalVersion(value.toCharArray());
    }

    void print() {
        System.out.println(getName()+" = "+getValue());
    }

    /**
     * @return the name
     */
    public char[] getName() {
        return name;
    }

    /**
     * @return the value
     */
    public char[] getValue() {
        return value;
    }
    
}
